@import "@/common/constants/StyleConst.scss";

.new-problem {
  height: inherit;

  .head {
    line-height: 48px;
    height: 48px;
    display: flex;
    align-items: center;

    .title {
      font-size: 18px;
      font-weight: 700;
      margin-left: 14px;
      color: $color-theme-grey;
    }
  }

  .form {
    height: calc(100% - 48px);
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.25);
    border-radius: 8px;

    .head {
      height: 40px;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      padding: 0;
      padding-right: 24px;
      background-color: $color-theme-blue;

      .icon-save {
        color: $color-text-white;
      }
    }

    .card-text {
      height: calc(100% - 40px);
      overflow-y: auto;
      padding: 9px 32px 32px 32px;

      .input-list {
        margin-top: 16px;

        .label {
          text-align: left;
          font-size: 12px;
          color: $color-theme-grey;
          margin-bottom: 0;
        }

        .icon {
          text-align: left;
          padding-left: 8px;

          .search-icon {
            color: #79839B;
          }
        }

        .canvas-container {
          position: relative;

          .canvas {
            width: 100%;
            height: 320px;
            background-color: $color-theme-lightgrey;
            border-radius: 8px;
          }

          .rewrite-btn {
            position: absolute;
            bottom: 7px;
            right: 0;
            box-shadow: unset;
            background-color: $color-theme-orange;
            font-size: 12px;
            color: $color-text-white;
          }
        }

      }

      .icon-check {

        margin-top: 34px;

        .icon {
          color: $color-theme-orange;
          font-size: 32px;
        }
      }
    }
  }
}

.dialog {
  padding: 0 12px;

  .search {
    margin: 16px 0;
    padding: 0 16px;
  }

  .form-info {
    ::v-deep .v-data-table__wrapper {
      .v-data-table-header {
        background-color: #79839B;
      }

      thead {
        tr {
          th {
            padding: unset;
            height: 28px;

            span {
              font-weight: 700;
              font-size: 14px;
              color: $color-text-white;
            }
          }

          > :nth-child(1) {
            padding-left: 28px;
            width: 33%;
            border-radius: 8px 0 0 8px;
          }

          > :last-child {
            border-radius: 0 8px 8px 0;
          }
        }

      }

      tbody {
        tr {
          td {
            padding: unset;
            height: 28px;
            border-bottom: unset !important;
            font-size: 12px;
            color: $color-theme-grey;
          }

          > :nth-child(1) {
            padding-left: 28px;
            width: 33%;
            border-radius: 8px 0 0 8px;
          }

          &:hover {
            background: rgba(236, 237, 238, 0.4);

            :nth-child(1) {
              border-radius: 8px 0 0 8px;
            }

            :last-child {
              border-radius: 0 8px 8px 0;
            }
          }
        }
      }
    }
  }
}